package com.appwoo.txtws.service;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.NetworkInfo.State;

public class SystemConnectivityChangeReceiver extends BroadcastReceiver
{
  public void onReceive(Context paramContext, Intent paramIntent)
  {
    ConnectivityManager localConnectivityManager = (ConnectivityManager)paramContext.getSystemService("connectivity");
    NetworkInfo.State localState1 = localConnectivityManager.getNetworkInfo(1).getState();
    NetworkInfo.State localState2 = NetworkInfo.State.CONNECTED;
    int i = 0;
    if (localState2 == localState1)
      i = 1;
    NetworkInfo.State localState3 = localConnectivityManager.getNetworkInfo(0).getState();
    if (NetworkInfo.State.CONNECTED != localState3)
      i = 1;
    if (i != 0)
    {
      Intent localIntent = new Intent();
      localIntent.setAction("refreshWeather");
      paramContext.sendBroadcast(localIntent);
    }
  }
}

/* Location:           C:\Documents and Settings\Administrator\classes_dex2jar.jar
 * Qualified Name:     com.appwoo.txtws.service.SystemConnectivityChangeReceiver
 * JD-Core Version:    0.6.2
 */